Package com.cisco.pt.ipc.system.impl
Class CommandLogImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCObjectImpl
com.cisco.pt.ipc.system.impl.CommandLogImpl
- All Implemented Interfaces:
IPCObject,CommandLog
Information provided by the PKI file:
\class CommandLog
\brief CommandLog serves as the entry point to all command log objects.
\example commandLog()
- Author:
- Auto-generated
-
Field Summary
Fields inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
accessMessage, ipcFactory, packetTracerSession -
Constructor Summary
ConstructorsConstructorDescriptionCommandLogImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Information provided by the PKI file:getEntryAt(int index) Information provided by the PKI file:intInformation provided by the PKI file:booleanInformation provided by the PKI file:voidsetEnabled(boolean enabled) Information provided by the PKI file:Methods inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession, sendMessage, sendMessageWithReturn, translateToCommandStatusStringPairMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.IPCObject
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession
-
Constructor Details
-
CommandLogImpl
public CommandLogImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage)
-
-
Method Details
-
clear
public void clear()Information provided by the PKI file:
\brief Clears the command log.- Specified by:
clearin interfaceCommandLog
-
setEnabled
public void setEnabled(boolean enabled) Information provided by the PKI file:
\brief Enables or disables the command log. \param enabled, true to enable the command log, false to disable it.- Specified by:
setEnabledin interfaceCommandLog- Parameters:
enabled- Takes in a parameter of enabled
-
isEnabled
public boolean isEnabled()Information provided by the PKI file:
\brief Returns true if the command log is enabled, otherwise false. \return bool, true if the command log is enabled, otherwise false.- Specified by:
isEnabledin interfaceCommandLog- Returns:
- boolean Returns a boolean
-
getEntryCount
public int getEntryCount()Information provided by the PKI file:
\brief Returns the command log entry count. \return int, the command log entry count.- Specified by:
getEntryCountin interfaceCommandLog- Returns:
- int Returns a int
-
getEntryAt
Information provided by the PKI file:
\brief Returns the CommandLogEntry object at the specified index. \param index, the index of the CommandLogEntry object of interest. \return CommandLogEntry, the CommandLogEntry object at the specified index.- Specified by:
getEntryAtin interfaceCommandLog- Parameters:
index- Takes in a parameter of index- Returns:
- CommandLogEntry Returns a CommandLogEntry
-